package com.example.demo.tests;

import com.example.demo.commen.Utils;
import org.openqa.selenium.By;

public class PageByNoLogin extends Utils {

    public static String listurl = "http://127.0.0.1:8080/blog_list.html";
    public static String editurl = "http://127.0.0.1:8080/blog_edit.html";
    public static String detailurl = "http://127.0.0.1:8080/blog_detail.html";


    public PageByNoLogin(String url) {
        super("");
    }

    //未登录状态下----访问列表页
    public void ListPageByNoLogin() throws InterruptedException {

        driver.findElement(By.cssSelector("body > div.nav > a:nth-child(6)")).click();

        driver.get(listurl);

        String ex = driver.getTitle();

        assert ex.equals("博客登陆页");

    }


}
